#ifndef CMODEL_H
#define CMODEL_H

#include <QSqlQueryModel>

class CModel : public QSqlQueryModel
{
    Q_OBJECT
public:
    explicit CModel(QObject *parent = 0);

protected:
    virtual QString queryString() = 0;
    virtual void refresh() = 0;
    virtual void initRoles() = 0;

signals:

public slots:

};

#endif // CMODEL_H
